package com.ruoyi.common.core.domain.entity;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * 分类管理对象 category_management
 * 
 * @author Yuan
 * @date 2024-05-03
 */
@Data
public class CategoryManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 类别ID */
    private Long categoryId;

    /** 类别名称 */
    @Excel(name = "类别名称")
    private String categoryName;

    /** 父类别ID */
    @Excel(name = "父类别ID")
    private Long parentId;

    /** 类别归属(01=供应商,02=客户,03=产品) */
    @Excel(name = "类别归属(01=供应商,02=客户,03=产品)")
    private String categoryOwner;

    private List<CategoryManagement> children = new ArrayList<CategoryManagement>();

}
